package com.shihang.blog.config;

public class PageConfig {

    private Integer page = 1;
    private Integer pageSize = 10;
    private Integer index = 0;

    public PageConfig() {
    }


    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
        index = (page-1)*pageSize;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
        index = (page-1)*pageSize;
    }

    public Integer getIndex() {
        return index;
    }

    public void setIndex(Integer index) {
        this.index = index;
    }
}
